﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;
using System.Web.Mvc.Html;
using System.Web.Routing;

namespace mForum.Web.Common.Extensions
{
    using mForum.Core.Infrastructure.IoC;
    using mForum.Web.Common.Infrastructure;
    using mForum.Web.Common.Infrastructure.AssetManager;

    public static class HtmlHelperExtensions
    {
        public static MvcHtmlString PageTitle(this HtmlHelper instance, string siteName, string pageName)
        {
            return MvcHtmlString.Create(String.IsNullOrEmpty(pageName) ? siteName : String.Format("{0} - {1}", siteName, pageName));
        }
    }
}
